home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-28 | 490 b | 19 lines | [TEXT/PJMM] |
- unit ResCheck;
- {Copyright © 1990, David B. Lamkins}
- {All rights reserved.}
-
- interface
-
- function DangerousResource (theType: OSType; theID: INTEGER; theName: StringPtr; theHandle: Handle): BOOLEAN;
-
- implementation
-
- function DangerousResource (theType: OSType; theID: INTEGER; theName: StringPtr; theHandle: Handle): BOOLEAN;
- var
- theSize: LONGINT;
- begin
- theSize := GetHandleSize(theHandle);
- DangerousResource := (theType = 'WDEF') and (theID = 0) and (theSize = 1836);
- end;
-
- end.